package cn.tedu.baking.service.impl;

import cn.tedu.baking.mapper.ICategoryMapper;
import cn.tedu.baking.pojo.vo.CategoryVO;
import cn.tedu.baking.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author：毕龙
 * Date: 2024/8/15 11:23
 */
@Service
public class CategoryServiceImpl implements ICategoryService {

    @Autowired
    private ICategoryMapper iCategoryMapper;

    @Override
    public List<CategoryVO> getCategories(Integer type) {
        return iCategoryMapper.getCategories(type);
    }
}
